package com.ziilion;

import android.app.Activity;
import android.os.Bundle;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;


public class SignUpPage extends Activity {
	private EditText email;
    private EditText password;
    private EditText rPassword;
    private EditText nickName;
    private Button btnSignUp;
    private Button btnOptionInformation;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
        setContentView(R.layout.signuppage);
        email=(EditText)this.findViewById(R.id.email);
        password=(EditText)this.findViewById(R.id.password);
        rPassword=(EditText)this.findViewById(R.id.rpassword);
        nickName=(EditText)this.findViewById(R.id.nickname);
        btnSignUp=(Button)this.findViewById(R.id.signup);
        btnOptionInformation=(Button)this.findViewById(R.id.optioninformation);
        btnOptionInformation.setOnClickListener((OnClickListener) new OptionInformationListener());
        btnSignUp.setOnClickListener((OnClickListener) new SignUpListener());
       
	}
	class  SignUpListener implements OnClickListener{

		  @Override
		  public void onClick(View v) {
		   // TODO Auto-generated method stub
		   String sEmail=email.getText().toString();
		   String sPassword=password.getText().toString();
		   String sRpassword=rPassword.getText().toString();
		   String sNickName=nickName.getText().toString();
		   Intent intent=new Intent();
		   
		   intent.setClass(SignUpPage.this,SignUpOption.class);
		   SignUpPage.this.startActivity(intent);
		  }
	}
	class  OptionInformationListener implements OnClickListener{

		  @Override
		  public void onClick(View v) {
		   // TODO Auto-generated method stub
		   
		   Intent intent=new Intent();
		   
		   intent.setClass(SignUpPage.this,SignUpOption.class);
		   SignUpPage.this.startActivity(intent);
		  }
	}
	
}

